package org.dingfugui.triple.protocol;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by fugui.ding on 2015/6/11.
 */
public abstract class AbstractAcceptor implements Acceptor {
    protected static final int DEFAULT_PORT = 8691;
    protected ExecutorService workThreadPool = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors() * 2);


    public void setWorkThreadPool(ExecutorService workThreadPool) {
        this.workThreadPool = workThreadPool;
    }
}
